MDirectorNewsletter\includes\Mdirector_Newsletter_Utils D

Total Complexity 282
Dependencies 11
Dependents 6
Total lines 1,744
Lines of code 1,157
Logical lines of code 507
Comment lines 122
Methods 91
Properties 4

Methods 91

Method Rating Maintainability Complexity Lines of code
sendMailAPI()
B
37 16 73
getRegisterFormHTML()
A
40 15 59
isDeliveryActive()
A
47 15 36
mdSendWeeklyMails()
A
40 12 60
mdSendDailyMails()
A
42 10 53
getUserListItemHTML()
A
47 10 33
composeEmailSubject()
A
51 8 27
mdSendMail()
S
47 6 34
getUserListNameByType()
S
58 7 17
log()
S
55 6 21
getSelectedUserListsByLanguageHTML()
S
50 5 28
getSelectFrequency()
S
52 5 27
getCurrentLanguages()
S
55 5 21
buildWeeklyMails()
S
56 5 19
buildDailyMails()
S
56 5 19
getCurrentTemplate()
S
58 5 16
getUserListsByAPI()
S
51 4 30
getUserCampaignsByAPI()
S
51 4 29
getCurrentSegmentsIds()
S
61 5 12
getCurrentGroupsIds()
S
61 5 12
getCurrentListsIds()
S
62 5 11
findKeyInMultiArray()
S
63 5 10
getCurrentLang()
S
60 4 13
getExcludeCats()
S
61 4 12
getCampaignsHTMLByFrequency()
S
54 3 21
textTruncate()
S
57 3 16
buildPosts()
S
59 3 14
getMainImage()
S
63 3 11
getTemplateMainFile()
S
64 3 10
checkIfDeliveryCanBeSent()
S
63 3 10
getUserListValueByType()
S
73 3 5
parseUserLists()
S
68 3 7
parseUserSegments()
S
69 3 7
resetNewsletterDeliveryDateSent()
S
59 2 15
parseUserGroups()
S
68 3 7
getTemplateOptionsHTML()
S
59 2 15
getListsPrefix()
S
66 3 9
getPluginTemplates()
S
63 3 10
getUserCampaignsHTML()
S
59 2 14
getMinimumPostsForNewsletter()
S
59 2 14
parsePost()
S
60 2 13
getCustomTemplatesURI()
S
62 2 13
getCampaignsForTestsHTMLByFrequency()
S
62 2 11
getUserListExtraData()
S
70 2 6
getListsHTML()
S
66 2 8
calculateFromDate()
S
68 2 6
getTemplatePath()
S
69 2 7
printNotices()
S
73 2 5
getCustomTemplatesPath()
S
69 2 7
cleanNewsletterProcess()
S
63 2 10
getPluginOptions()
S
76 2 4
getMainImageSize()
S
74 2 5
getTemplateURL()
S
70 2 6
getImageTagFromPost()
S
64 2 10
getDeliveryCampaignId()
S
70 2 6
getDynamicPostTitle()
S
68 2 7
getPostsArgs()
S
64 1 11
resetDeliveriesSent()
S
64 1 11
getCustomPostArg()
S
72 1 6
getDefaultUserLists()
S
68 1 7
calculateToDate()
S
71 1 5
buildWeeklyMailsInPreviewMode()
S
76 1 4
getAndParseCustomPost()
S
74 1 4
prettyPrintMultiArray()
S
67 1 7
getCustomPost()
S
72 1 5
reportNotice()
S
74 1 5
buildDailyMailsInPreviewMode()
S
76 1 4
__construct()
S
76 1 4
getPosts()
S
70 1 6
getWeeklyCampaignsByLanguageHTML()
S
80 1 3
getDefaultTemplates()
S
75 1 4
getUserCustomTemplates()
S
65 1 9
getCustomTemplatesOnParentThemePath()
S
72 1 6
getCustomTemplatesOnChildThemePath()
S
72 1 6
templateMainFileIsTwig()
S
75 1 4
getTemplateName()
S
75 1 4
isTemplateCustom()
S
79 1 3
parsingTemplate()
S
69 1 6
buildListFromPosts()
S
64 1 10
getWeeklyCampaignsTestsHTML()
S
80 1 3
setHTMLContentType()
S
82 1 3
getDailyCampaignsByLanguageHTML()
S
80 1 3
getDailyCampaignsTestsHTML()
S
80 1 3
getUserListsHTML()
S
75 1 4
isWPML()
S
80 1 3
getSegmentId()
S
82 1 3
getSegmentsInGroup()
S
75 1 4
buildUserList()
S
80 1 3
buildUserGroupSegments()
S
80 1 3
buildUserListsForCampaign()
S
69 1 7
bootNotices()
S
79 1 3